package com.yinpeng;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 循环引用案例
 */
public class TestReg {

	public static void main(String[] args) {

	}

	@Component
	class A {

		@Autowired
		private B b;
	}


	@Component
	class B{

		@Autowired
		private A a;
	}
}
